import request from '@/utils/request'

// 登录API
export const loginAPI = data => {
  return request({
    url: '/login',
    method: 'POST',
    data
  })
}

// 手机号 短信登录
export const mobileLoginAPI = (data) => {
  return request({
    url: '/login/code',
    method: 'POST',
    data
  })
}

// 获取验证码
export const getCodeMsgAPI = params => request({
  url: '/login/code',
  params
})
